function [lb,ub,dim,fobj] = Get_Functions_details(F)
switch F
    case 'F1'
        fobj = @F1;
        lb=-1;
        ub=2;
        dim=76;       
end
end

function o = F1(x)
rule_num=4;

load springtrain_test_mg.mat
R1=data;
data=R1(1:8822,1:6);
data_act=R1(1:8822,7)';

oo=size(x,2);
[m,n]=size(data);  
clo=(oo/rule_num);
matrix=reshape(x(1:oo),rule_num,clo);
M=matrix(:,1:n);
sigma=matrix(:,n+1:2*n);
c0=matrix(:,2*n+1:end);   
[~,~,TS_output]=tsk_type1(data,M,sigma,c0);
o=sum((TS_output-data_act).^2)/size(data,1);
end
